TEGetStyleHandle
The TEGetStyleHandle function returns the style handle stored in the designated
edit record's txFont and txFace fields. The style handle points to the associated
style record.
FUNCTION TEGetStyleHandle (hTE: TEHandle): TEStyleHandle;
hTE
- A handle to the multistyled edit record containing the style handle to
be returned.
DESCRIPTION
The TEGetStyleHandle function returns a handle to the style record (of type TEStyleRec), not a copy of it. Because only multistyled edit records have style records, TEGetStyleHandle returns NIL when used with a monostyled edit record. To ensure future compatibility, your application should always use this function rather than manipulate the fields of the edit record directly.